package mpcc.mpcc.base;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class BaseListView extends Activity {
private ListView listView;
public void onCreate(Bundle savedInstanceState){
	super.onCreate(savedInstanceState);
	listView=new ListView(this);
	listView.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,getData()));
	setContentView(listView);
	
}
public List<String> getData(){
	List<String> list=new ArrayList<String>();
	list.add("d");
	return list;
}
}
